﻿<%@ Page Language="c#" CodeBehind="StaffData.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.WorkAttendance.StaffDataPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>StaffData</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="StaffData" method="post" runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/kaoqin2.gif" Title="考勤查询" />
    <table cellspacing="0" cellpadding="0" width="100%" border="0" class="gbtext">
      <tr>
        <td style="width: 155px" height="40">&nbsp; 姓名： <asp:Literal ID="ltlname" runat="server" /></td>
        <td style="width: 235px" height="40">查询开始时间： <asp:Literal ID="ltlbegintime" runat="server" /></td>
        <td style="width: 223px" height="40">查询结束时间： <asp:Literal ID="ltlendtime" runat="server" /></td>
        <td height="40">状态： <asp:Literal ID="lbltype" runat="server" /></td>
      </tr>
      <tr>
        <td colspan="4">
          <asp:DataGrid ID="grdStaff" runat="server" AutoGenerateColumns="False" Width="100%" BorderColor="#93BEE2" BorderWidth="1px" CellPadding="3" CssClass="gbtext">
            <HeaderStyle BackColor="#E8F4FF" />
            <Columns>
              <asp:TemplateColumn HeaderText="日期">
                <ItemTemplate>
                  <%# DateTime.Parse(((DataRowView)Container.DataItem)["WorkDate"].ToString()).ToString("yyyy-MM-dd") %>
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="上班时间">
                <ItemTemplate>
                  <%# GetTime(((DataRowView)Container.DataItem)["OnDuty"]) %> <asp:Literal ID="Literal1" runat="server" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="上班备注">
                <ItemTemplate>
                  <%# GetMemo(((DataRowView)Container.DataItem)["OnDuty_MemoID"])%>
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="下班时间">
                <ItemTemplate>
                  <%#	GetTime(((DataRowView)Container.DataItem)["OffDuty"])%> <asp:Literal ID="Literal2" runat="server" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="下班备注">
                <ItemTemplate>
                  <%# GetMemo(((DataRowView)Container.DataItem)["OffDuty_MemoID"])%>
                </ItemTemplate>
              </asp:TemplateColumn>
            </Columns>
          </asp:DataGrid>
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
